<template>
    <div class="today">今日医生</div>
    <el-table :data="$props.data" style="width: 100%">
        <el-table-column prop="name" label="医生" />
        <el-table-column prop="department" label="科室" />
        <el-table-column prop="count" label="看诊人数" />
        <el-table-column prop="file" label="本周处方" />
        <el-table-column prop="rating" label="患者满意度" />
        <el-table-column prop="type" label="医院评级" />
    </el-table>
</template>

<script lang="ts" >
import { defineComponent, onMounted, ref,nextTick } from 'vue'
import { onUpdated } from 'vue'
export default defineComponent({
    props: {
        data: Array
    },
    setup(props: any) {
        const tableData = ref([])
         onMounted( () => {
            // await nextTick()
            console.log(props.data,'ssssas');
            tableData.value = props.data
        })
        console.log(tableData,'pppp');

    }

})


</script>

<style scoped>
.today {
    font-weight: 700;
    font-size: 20px;
    /* margin-bottom: 25px; */
}
</style>
